package com.fdm.model.properties;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class BinaryProperties 
{
	private final String filename;
	private Properties properties = new Properties();
	
	public BinaryProperties() {
		ReadFile("BankTeller.properties");
		this.filename = properties.getProperty("FILENAME");
	}

	public String getFilename() {
		return filename;
	}

	private void ReadFile(String file)
	{
		try {
			InputStream inputStream = this.getClass().getClassLoader()  
	        .getResourceAsStream(file); 
			properties.load(inputStream);
		} catch (FileNotFoundException e) {

		} catch (IOException e) {

		}
	}
}
